﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Psm.Logging.Log4netLogger;
using Psm.Logging;


namespace UnitTests
{
    [TestClass]
    public class Log4netLoggingTests
    {
        private static ILogger logger;

        [ClassInitialize]
        public static void ClassSetup(TestContext a)
        {
            logger = new Log4netLogger();
        }

        [TestMethod]
        public void TestLogging()
        {
            logger.Debug("Testing {0}", "Debug");
            logger.Error("Testing {0}", "Error");
            logger.Fatal("Testing {0}", "Fatal");
            logger.Info("Testing {0}", "Info");
            logger.Warning("Testing {0}", "Warning");
            logger.Exception(new Exception("Testing Exception"));
            logger.Exception("Testing exception", new Exception("Exception"));
        }
    }
}
